-
Notifications
You must be signed in to change notification settings - Fork 284
🌱 Refactor generate-codegen #2762
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🌱 Refactor generate-codegen #2762
Conversation
✅ Deploy Preview for kubernetes-sigs-cluster-api-openstack ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
This is a manual backport. This commit changes how we run and build codegen. Instead of using a script inside the openapi-gen package, we now build and call the binary directly. This avoids issues where the upstream package is incompatible with the go version we use. Minor changes to generated code: - api_violations.report: One additional violation detected by newer gengo - zz_generated.openapi.go: Backslash escaping difference (cosmetic) Signed-off-by: Lennart Jern <[email protected]>
1c7236b to
ee66016
Compare
|
Ok looks like it works now. I had to downgrade kustomize to get things working. cluster-api-provider-openstack/hack/tools/go.mod Lines 151 to 153 in 0556957
|
|
Keeping hold until we have discussed and merged #2761. |
|
Main PR merged. |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: lentzi90 The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
smoshiur1237
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/lgtm
|
We are not really supporting release-0.11, but if this can be automatically backported I am willing to do it to keep the tests green. |
|
@lentzi90: #2762 failed to apply on top of branch "release-0.11": In response to this:
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. |
What this PR does / why we need it:
This is a manual backport.
This commit changes how we run and build codegen.
Instead of using a script inside the openapi-gen package, we now build and call the binary directly. This avoids issues where the upstream package is incompatible with the go version we use.
Which issue(s) this PR fixes (optional, in
fixes #<issue number>(, fixes #<issue_number>, ...)format, will close the issue(s) when PR gets merged):Fixes #2742
Special notes for your reviewer:
TODOs:
/hold